package com.acme.bankapp.exceptions;

public class NotEnoughFundsException extends BankException {
	
	protected double amount;
	
	public NotEnoughFundsException(double amount, Throwable cause) {
		super(cause);
		this.amount = amount;
	}

    public NotEnoughFundsException(double amount) {
        this.amount = amount;
    }

    public double getAmount() {
        return amount;
    }

    public NotEnoughFundsException(
    		double amount, String message, Throwable cause) {
        super(message, cause);
        this.amount = amount;
    }

    public NotEnoughFundsException(double amount, String message) {
        super(message);
        this.amount = amount;
    }
}


